<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<html>
<head>
    <meta http-equiv="content-type" content="text/html" charset="UTF-8">
    <title>welcome</title>
</head>
<body>
<h2>welcome to world</h2>
<form action="login">
    <label>帐号：<input type="text" id="username" name="username"/></label>
    <label>密码：<input type="password" id="password" name="password"/></label>
    <input type="submit" value="登录">
</form>
<script>
    class person {
        constructor(name, age) {
            this.name = name;
            this.age = age;
        }

        getState(issue) {
            let self = this;
            return new Promise((resolve, reject) => {
                $.ajax({
                    type: "POST",
                    url: "/get/openCode",
                    data: {issue: issue},
                    dataType: "json",
                    success: res => resolve.call(self, res),
                    error: err => reject.call(err)
                });
            })
        }
    }

    let number;
    let arr = [1, 2, 3, 4, 10, 11];
    for (let i = 0; i < arr.length; i++) {
        console.log(number.add('' + i).padStart(2, '0'));
    }
</script>
</body>
</html>